import BpmNodeSelect from './BpmNodeSelect.vue';
import ParentProcessModal from './ParentProcessModal/index.vue';
import RelativeProcessList from './RelativeProcessList/index.vue';
import ButTrack from './ButTrack.vue';
import FatherTrack from './FatherTrack.vue';
import Globalidea from './Globalidea.vue';
import ProcessTreeTable from './ProcessTreeTable.vue';
import SelectWorkHandUser from './SelectWorkHandUser.vue';

const components = {
  ParentProcessModal,
  RelativeProcessList,
  BpmNodeSelect,
  ButTrack,
  FatherTrack,
  Globalidea,
  ProcessTreeTable,
  SelectWorkHandUser
};

Object.keys(components).forEach((key) => {
  // eslint-disable-next-line func-names
  components[key].install = function (Vue) {
    Vue.component(components[key].name, components[key]);
  };
});
export default {
  ParentProcessModal,
  RelativeProcessList,
  BpmNodeSelect,
  ButTrack,
  FatherTrack,
  Globalidea,
  ProcessTreeTable,
  SelectWorkHandUser
};

export { ParentProcessModal, RelativeProcessList, BpmNodeSelect, ButTrack, FatherTrack, Globalidea, ProcessTreeTable, SelectWorkHandUser };
